﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" AutoEventWireup="true"
    CodeFile="ReportView.aspx.cs" Inherits="ReportManagment_ReportView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabTitle" runat="Server">
    <%=Resources.Resource.DataReport%><%--数据报表--%>&nbsp; &nbsp;<a href="#" onclick="history.go(-1);">GoBack</a>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="GridDivCss">
        <IMC:GridView ID="gvReport" runat="server" AllowPaging="true" AllowSorting="true"
            PageSize="12" OnRowDataBound="gvReport_RowDataBound" MergeCells="0,1" DataSourceID="reportDataSource">
            <Columns>
                <asp:TemplateField HeaderText="BU" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        &nbsp;<asp:Label ID="lbl_BU" runat="server" Text='<%#Eval("BUName")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$Resources:Resource,PlanYear %>" ItemStyle-HorizontalAlign="Center">
                    <%--计划年--%>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="lbl_CYear" runat="server" Text='<%#Eval("year")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$Resources:Resource,PlanMonths %>" ItemStyle-HorizontalAlign="Center">
                    <%--计划月--%>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="lbl_CMonth" runat="server" Text='<%#Eval("Month")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$Resources:Resource,NumberDfPlans %>" ItemStyle-HorizontalAlign="Center">
                    <%--计划数量--%>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="lbl_ForcastPPP" runat="server" Text='<%#Eval("plan")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="<%$Resources:Resource, MonthCapacity%>" ItemStyle-HorizontalAlign="Center">
                    <%--本月能力--%>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="lbl_UpppTarget" runat="server" Text='<%#Eval("capacity")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ForcastTEEP" ItemStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="lbl_ForcastTEEP" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </IMC:GridView>
        <asp:ObjectDataSource ID="reportDataSource" runat="server" TypeName="ReportDataSource"
            SelectMethod="GetForcast">
            <SelectParameters>
                <asp:QueryStringParameter QueryStringField="buName" Name="buName" Type="String" />
                <asp:SessionParameter SessionField="start" Name="start" Type="DateTime" />
                <asp:SessionParameter SessionField="end" Name="end" Type="DateTime" />
                <asp:QueryStringParameter QueryStringField="version" Name="PlanVersion" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
</asp:Content>
